
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>系统安全验证</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            -webkit-user-select: none;
            user-select: none;
        }
        body {
            font-family: 'Noto Sans SC', sans-serif;
            background-color: #f0f0f0;
            height: 100vh;
            overflow: hidden;
            touch-action: none;
            position: fixed;
            width: 100%;
        }
        #app {
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
        }
        .header {
            margin-bottom: 30px;
        }
        .header h1 {
            color: #e74c3c;
            font-size: 24px;
            margin-bottom: 10px;
        }
        .header p {
            color: #7f8c8d;
            font-size: 16px;
        }
        .meme-container {
            width: 80%;
            max-width: 300px;
            margin: 0 auto 30px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        .meme-container img {
            width: 100%;
            display: block;
        }
        .instructions {
            background-color: #fff;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            width: 90%;
            max-width: 400px;
        }
        .instructions h2 {
            color: #2c3e50;
            font-size: 18px;
            margin-bottom: 15px;
        }
        .instructions p {
            color: #7f8c8d;
            font-size: 14px;
            line-height: 1.6;
        }
        .mic-status {
            position: fixed;
            bottom: 70px;
            left: 0;
            right: 0;
            text-align: center;
            font-size: 14px;
            color: #e74c3c;
            padding: 10px;
            background-color: rgba(255,255,255,0.9);
            border-radius: 50px;
            margin: 0 auto;
            width: 80%;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        .start-btn {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(52,152,219,0.4);
        }
        .unlock-btn {
            display: none;
            background-color: #2ecc71;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(46,204,113,0.4);
        }
        .fake-ads {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: #ff4757;
            color: white;
            padding: 8px;
            text-align: center;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="fake-ads">⚠️ 您的设备存在安全风险，请立即处理   ⚠️</div>
        
        <div class="header">
            <h1>系统安全验证</h1>
            <p>必须完成验证才能继续使用</p>
        </div>
        
        <div class="meme-container">
            <img src="https://img2.baidu.com/it/u=3085447481,717556159&fm=253&fmt=auto&app=138&f=JPEG?w=882&h=800" alt="系统锁定表情包">
        </div>
        
        <div class="instructions">
            <h2>验证说明</h2>
            <p>检测到异常操作，必须通过语音验证解锁设备。请点击下方按钮开始验证：</p>
        </div>
        
        <button class="start-btn" id="startBtn">开始语音验证</button>
        
        <div class="mic-status" id="micStatus">等待开始验证...</div>
        
        <button class="unlock-btn" id="unlockBtn">解锁设备</button>
    </div>

    <script>
        // 阻止所有触摸事件的默认行为
        document.addEventListener('touchmove', function(e) {
            e.preventDefault();
        }, { passive: false });
        
        // 禁用返回按钮
        history.pushState(null, null, document.URL);
        window.addEventListener('popstate', function() {
            history.pushState(null, null, document.URL);
        });
        
        // 语音识别
        let recognition;
        const micStatus = document.getElementById('micStatus');
        const startBtn = document.getElementById('startBtn');
        const unlockBtn = document.getElementById('unlockBtn');
        let unlockAttempts = 0;
        
        function initSpeechRecognition() {
            if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) {
                recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)();
                recognition.continuous = true;
                recognition.lang = 'zh-CN';
                recognition.interimResults = false;
                
                recognition.onstart = function() {
                    micStatus.textContent = "正在监听...请说出验证码'我是小黑子'";
                };
                
                recognition.onresult = function(event) {
                    const transcript = event.results[event.results.length - 1][0].transcript.toLowerCase();
                    console.log("识别结果:", transcript);
                    
                    if (transcript.includes('我是小黑子')) {
                        micStatus.textContent = "验证成功！正在解锁...";
                        unlockBtn.style.display = 'block';
                        startBtn.style.display = 'none';
                    } else {
                        unlockAttempts++;
                        if (unlockAttempts > 2) {
                            micStatus.textContent = `验证失败 ${unlockAttempts} 次，请重试`;
                        } else {
                            micStatus.textContent = "验证失败，请重试";
                        }
                        // 识别失败后停止识别并显示开始按钮
                        recognition.stop();
                        startBtn.style.display = 'block';
                    }
                };
                
                recognition.onerror = function(event) {
                    console.error('语音识别错误:', event.error);
                    micStatus.textContent = "麦克风错误，请刷新页面重试";
                    startBtn.style.display = 'block';
                };
                
                recognition.onend = function() {
                    // 仅在成功识别时不自动重启
                    if (unlockBtn.style.display !== 'block') {
                        startBtn.style.display = 'block';
                    }
                };
            } else {
                micStatus.textContent = "您的浏览器不支持语音识别";
            }
        }
        
        // 开始按钮点击事件
        startBtn.addEventListener('click', function() {
            initSpeechRecognition();
            recognition.start();
            startBtn.style.display = 'none';
        });
        
        // 解锁按钮
        unlockBtn.addEventListener('click', function() {
            document.body.innerHTML = `
                <div style="
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: #2ecc71;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    color: white;
                    font-family: sans-serif;
                    text-align: center;
                    padding: 20px;
                ">
                    <h1 style="font-size: 24px; margin-bottom: 20px;">验证成功！</h1>
                    <p style="font-size: 16px; margin-bottom: 30px;">设备已解锁，您现在可以正常使用了</p>
                    <button onclick="window.close()" style="
                        background-color: white;
                        color: #2ecc71;
                        border: none;
                        padding: 12px 25px;
                        border-radius: 50px;
                        font-size: 16px;
                        font-weight: bold;
                    ">关闭页面</button>
                </div>
            `;
        });
    </script>
</body>
</html>
（AI生成）